home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1993 September
/
September 93.iso
/
Archives
/
Utilities
/
System
/
System Utilities
/
Shells
/
MacShell Demo
/
,profile
< prev
next >
Wrap
Text File
|
1991-06-15
|
8KB
|
167 lines
# Next line added by MB/cH
new
#
# The '.profile' script
#
# This script is executed when a new shell is openned.
# You can edit this file to create a customizable working
# enviroment.
#
echo 'Configuring MacShell, please wait…'
echo 'building Shell menu…'
addmenu Shell 'Restart' restart
addmenu Shell 'ShutDown' shutdown
addmenu Shell '(- ' 'NO-COMMAND'
addmenu Shell 'File List' 'ls -l'
addmenu Shell 'Disk Free Space' 'df'
addmenu Shell 'Volume List' 'ls //'
addmenu Shell '(-' 'NO-COMMAND'
addmenu Shell 'Preferences…' 'prefs'
addmenu Shell 'Set Directory…' 'cd -d'
#
# The system manuals
#
echo 'building man menu…'
#
# build files menu and sub menu
#
addmenu man 'file commands'
#
addsubmenu man 'file commands' filesubmenu touch 'man touch>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu size 'man size>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu rm 'man rm>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu pr 'man pr>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu mv 'man mv>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu hd 'man hd>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu grep 'man grep>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu fgrep 'man fgrep>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu find 'man find>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu diff 'man diff>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu decrypt 'man decrypt>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu crypt 'man crypt>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu cp 'man cp>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu cat 'man cat>info;read info;rm info'
addsubmenu man 'file commands' filesubmenu cmp 'man cmp>info;read info;rm info'
#
# build directory menu and sub menu
#
addmenu man 'dir commands'
addsubmenu man 'dir commands' dirsubmenu rmdir 'man rmdir>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu pwd 'man pwd>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu mvt 'man mvt>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu mkdir 'man mkdir>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu ls 'man ls>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu df 'man df>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu cpt 'man cpt>info;read info;rm info'
addsubmenu man 'dir commands' dirsubmenu cd 'man cd>info;read info;rm info'
#
# build misc menu and sub menu
#
addmenu man 'misc commands'
addsubmenu man 'misc commands' miscsubmenu wc 'man wc>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu tr 'man tr>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu unset 'man unset>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu set 'man set>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu sleep 'man sleep>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu sh 'man sh>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu script 'man script>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu read 'man read>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu pwd 'man pwd>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu edit 'man edit>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu echo 'man echo>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu date 'man date>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu cal 'man cal>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu unalias 'man unalias>info;read info;rm info'
addsubmenu man 'misc commands' miscsubmenu alias 'man alias>info;read info;rm info'
#
# build Mac menu and sub menu
#
addmenu man 'Mac commands'
addsubmenu man 'Mac commands' macsubmenu sound 'man sound>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu shutdown 'man shutdown>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu setfile 'man setfile>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu saveas 'man saveas>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu save 'man save>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu revert 'man revert>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu restart 'man restart>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu quit 'man quit>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu print 'man print>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu prefs 'man prefs>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu play 'man play>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu pagesetup 'man pagesetup>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu open 'man open>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu new 'man new>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu eject 'man eject>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu delmenu 'man delmenu>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu close 'man close>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu clear 'man clear>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu addsubmenu 'man addsubmenu>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu addmenu 'man addmenu>info;read info;rm info'
addsubmenu man 'Mac commands' macsubmenu about 'man about>info;read info;rm info'
#
# build Mac dev menu and sub menu
#
addmenu man 'Developer commands'
addsubmenu man 'Developer commands' devsubmenu vpb 'man vpb>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu rmr 'man rmr>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu mvr 'man mvr>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu lsr 'man lsr>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu fpb 'man fpb>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu environ 'man environ>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu dpb 'man dpb>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu cpr 'man cpr>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu cmpr 'man cmpr>info;read info;rm info'
addsubmenu man 'Developer commands' devsubmenu dumpr 'man dumpr>info;read info;rm info'
#
# Add the remaining menus
#
addmenu man '(-' 'NO-COMMAND'
addmenu man variables 'man variables > info; read info; rm info'
addmenu man shortcuts 'man shortcuts > info; read info; rm info'
addmenu man shell 'man shell > info; read info; rm info'
addmenu man patterns 'man patterns > info; read info; rm info'
addmenu man examples 'read examples'
addmenu man commands 'man commands > info; read info; rm info'
addmenu man characters 'man characters > info; read info; rm info'
addmenu man '(- ' 'NO-COMMAND2'
addmenu man man 'man > info; read info; rm info'
#
# The system commands
#
#
# Some Complex functions
#
echo 'building project menu…'
addmenu proj 'Print Source' 'pr .../*.c'
addmenu proj 'Print Headers' 'pr .../*.h'
addmenu proj '(-' 'NO-COMMAND'
addmenu proj 'Show Source Files' 'ls .../*.c > source.lst; edit source.lst'
addmenu proj 'Show Header Files' 'ls .../*.h > header.lst; edit header.lst'
addmenu proj '(- ' 'NO-COMMAND'
addmenu proj 'Save All Source' 'save *.c'
addmenu proj 'Save All Header' 'save *.h'
#
# User Menu
#
echo 'building user menu…'
addmenu user 'Add your items here' 'echo use addmenu command'
addmenu user '(-' 'echo not a command'
addmenu user 'Edit ,profile' 'edit ,profile'
#
#
#
set 'PATH=/Scripts;/Tools;'
TYPE=APPL
CREATOR=sBAY
VERSION=1.0
alias vi=edit
alias dir=ls
set 'RX=../Telecom/RX/'
#
#
#
echo 'type man <cr> for system information.'